package com.meteor.service.impl;

import com.meteor.mapper.OrderMapper;
import com.meteor.pojo.Order;
import com.meteor.pojo.OrderDto;
import com.meteor.service.OrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {

    @Resource
    private OrderMapper orderMapper;


    @Override
    public List<Order> selectAllOrder() {
        return orderMapper.selectAllOrder();
    }

    @Override
    public int updateOrderById(Order order) {
        return orderMapper.updateOrderById(order);
    }

    @Override
    public int insertOrder(Order order) {
        return orderMapper.insertOrder(order);
    }

    @Override
    public List<OrderDto> selectOrderLastAll() {
        return orderMapper.selectOrderLastAll();
    }
}
